import { deleteById, sayHello } from "@/lib/action";
import React from "react";

const ServerAction = async () => {
  return (
    <div>
      <form action={sayHello}>
        <input type="text" placeholder="title" name="title" />
        <input type="text" placeholder="body" name="body" />
        <input type="text" placeholder="img" name="img" />
        <input type="text" placeholder="userId" name="userId" />
        <button>create</button>
      </form>

      <form action={deleteById}>
        <input type="text" placeholder="id" name="id" />
        <button>delete</button>
      </form>
    </div>
  );
};

export default ServerAction;
